package com.bank.repository;

import com.bank.entity.Notice;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface NoticeRepo extends CustomerRepo<Notice, Integer> {

    @Query("SELECT n FROM Notice n WHERE n.conference.keyId=?1")
    Notice findNoticeByConferenceId(Integer conferenceId);
}
